package com.company.cloud.sdk.modules.service.impl;

import com.company.cloud.official.modules.sdk.api.OfficialWxApi;
import com.company.cloud.official.modules.sdk.response.AccessTokenEntity;
import com.company.cloud.sdk.core.config.WxApiConfig;
import com.company.cloud.sdk.modules.service.OfficialWxSdkService;
import org.springframework.stereotype.Service;

@Service
public class OfficialWxSdkServiceImpl implements OfficialWxSdkService {

    @Override
    public AccessTokenEntity getAccessToken(WxApiConfig wxConfig) {
        return OfficialWxApi.getToken(wxConfig);
    }

}
